<div id="categoriesContent" class="sideBoxContent">
    <ul>
        <?php
            $backgroundColor = "";
            foreach ($cmsCategories as $cmsCategory) {
                $title = $cmsCategory->getCategoriesName();

                if ($backgroundColor == "bg2")
                    $backgroundColor = "";
                else
                    $backgroundColor = "bg2";

                if ($sf_user->getCulture()=="cn") {
                    $title = $cmsCategory->getCategoriesNameCn();
                }
        ?>
            <li class="category-top_un <?php echo $backgroundColor ?>"><span class="top-span"><a
                class="category-top_un"
                href="<?php echo url_for("/product/categories?id=".$cmsCategory->getCategoriesId()) ?>"><?php echo $title ?></a>&nbsp;(<?php echo $cmsCategory->getTotalCategoriesItem() ?>)</span>
            </li>
        <?php
            }
        ?>
    </ul>
</div>